package com.qumitech.visualnovel.component.util;

import java.util.Calendar;

/**
 * @Auther: yilu
 * @Date: 2018/9/18 15:58
 * @Description:
 */
public class TableNameUtil {

    private static Calendar calendar = Calendar.getInstance();
    private static int signYear = calendar.get(Calendar.YEAR);
    private static int signMonth = calendar.get(Calendar.MONTH)+1;

    public static String getSignRewardConfigTableName(){
        return "sign_reward_config_"+signYear+"_"+signMonth;
    }
    public static String getUserSignRewardTableName(){
        return "user_sign_reward_"+signYear+"_"+signMonth;
    }
    public static String getUserSignTableName(){
        return "user_sign_"+signYear+"_"+signMonth;
    }
    public static String getSignRewardConfigPationTableName(){
        return "sign_reward_config_"+signYear+"_"+signMonth;
    }

    public static String getRewardToDayConfigTable(){
        return "reward_to_day_config";
    }

    public static String getBillTblNameByMonth(int year,int month){
        return "user_bill_"+year+"_"+month;
    }

//    public static void main(String args[]){
//        System.err.println(getSignRewardConfigTableName()+"  "+calendar.getTime()+
//        " "+calendar.get(Calendar.DAY_OF_MONTH));
//    }
}
